<?
	$subject = $dsfm_contact->get_subject($_POST['sid']);
	$subject = $dsfm_localization->object($subject, "subject");

	$_POST['subject'] = $subject['subject'];
	$_POST['add_date'] = date("Y-m-d H:i:s");

	$dsfm_contact->add_contact($_POST);

/*
$to      = 'teoyteoy@hotmail.com';
$subject = 'the subject';
$message = '
<html>
<head>
  <title></title>
</head>
<body>
  <table cellpadding = "0" cellspacing = "0" border = "0">
    <tr>
      <td><img src = "http://dsentiment.com/waterfantasy/html/email/header.png"></td>
    </tr>
	<tr>
		<td>Hello</td>
	</tr>
	<tr>
      <td><img src = "http://dsentiment.com/waterfantasy/html/email/footer.png"></td>
    </tr>
  </table>
</body>
</html>
';


$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";

// More headers
$headers .= 'From: <info@dsentiment.com>' . "\r\n";

mail($to, $subject, $message, $headers);
*/

	alert($e['contact-success']);
	redirect("contact.php");
?>